import Vue from 'vue'
import VueRouter from 'vue-router'

import Index from "@/views/Index.vue"
import Adm from "@/layout/Adm.vue"
import Log from "@/layout/Log.vue"
import Login from "@/views/Log.vue"
Vue.use(VueRouter)
const router=new VueRouter({
    routes:[{
        path:"/",
        redirect:"/login"

    },{
        path:"/index",
        component:Adm,
        children:[{
            path:"",
            component:Index
            
        }]

    },{
        path:"/login",
        component:Log,
        children:[{
            path:"",
            component:Login,

            
        }]

    }]
})
export default router;